package com.bookmarket.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Chen Zhaoguang
 * @date 2017/12/26 11:23
 */

/**
 * 评价
 */
public class Mess implements Serializable{
    private int id;
    private Float score;//评分
    private Date messDate;//评论时间
    private String messWord;//评论内容
    private Custom custom;//用户外键
    private Book book;//图书外键

    public Mess() {
    }

    public Mess(Float score, String messWord, Custom custom, Book book) {
        this.score = score;
        this.messWord = messWord;
        this.custom = custom;
        this.book = book;
    }

    public Mess(int id, Float score, Date messDate, String messWord, Custom custom, Book book) {
        this.id = id;
        this.score = score;
        this.messDate = messDate;
        this.messWord = messWord;
        this.custom = custom;
        this.book = book;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public Date getMessDate() {
        return messDate;
    }

    public void setMessDate(Date messDate) {
        this.messDate = messDate;
    }

    public String getMessWord() {
        return messWord;
    }

    public void setMessWord(String messWord) {
        this.messWord = messWord;
    }

    public Custom getCustom() {
        return custom;
    }

    public void setCustom(Custom custom) {
        this.custom = custom;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }
}
